package com.mew.slots.core.game.hdcz;

import com.mew.common.rest.bo.GameSession;
import com.mew.slots.core.common.handler.AbstractBetHandler;
import com.mew.slots.core.common.handler.SlotsHandler;
import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import com.mew.slots.core.common.vo.StrategyGameVO;
import com.mew.slots.core.game.hdcz.roller.HdczIli;
import com.mew.slots.core.game.hdcz.roller.HdczXml;
import com.mew.slots.core.game.hdcz.service.HdczService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author King.Song
 * @Date 2020/11/9 0009
 **/
@Service
//闯子哥非要这么改
@SlotsHandler(value = "HDC")
@Slf4j
public class HdczHandler extends AbstractBetHandler {
    private HdczService hdczService=new HdczService();

    @Override
    public void specialCheck(StrategyGameVO gameVO, GameSession userVO) {
    }

    @Override
    public SlotsPlayResponseMessage play(StrategyGameVO gameVO, GameSession userVO) {
        return hdczService.Ready(gameVO);
    }

    @Override
    public SlotsBonusPlayResponseMessage playBonus(StrategyGameVO gameVO, GameSession userVO) {
        SlotsBonusPlayResponseMessage bouns = new SlotsBonusPlayResponseMessage();
        return bouns;
    }

    @Override
    public void readRoller() throws Exception {
        HdczIli.getInstance().init();
    }

    public static void main(String[] args) throws Exception {
        new HdczHandler().readRoller();
    }
}
